/* 
 *  Copyright (C) 2006 James Young
 * `gurumind(a)gmail.com
 * 
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace IPDEditor
{
    public partial class SelectionEdit : IPDEditor.VisualPanel
    {
        public SelectionEdit()
        {
            InitializeComponent();
        }

        public void AddRadio(string showText, object value, bool check, EventHandler updator)
        {
            RadioButton rb = new RadioButton();
            rb.Text = showText;
            rb.Tag = value;
            rb.Appearance = Appearance.Normal;
            rb.AutoCheck = true;
            rb.Checked = check;
            rb.CheckedChanged += updator;
            pnlRadio.Controls.Add(rb);
        }
    }
}

